from django.urls import path
from .views import UserinfoView,UploadImageView,UpdatePwdView,SendEmailCodeView,UpdateEmailView

app_name = 'users'

urlpatterns = [
    path('info/',UserinfoView.as_view(),name='user_info'),  # 用户个人信息
    path('image/upload',UploadImageView.as_view(),name='image_upload'),  # 用户头像上传
    path('update_pwd/',UpdatePwdView.as_view(),name='update_pwd'),  # 修改密码
    path('sendemail_code/',SendEmailCodeView.as_view(),name='sendemail_code'),  # 发送邮箱验证码
    path('update_email/', UpdateEmailView.as_view(),name='update_email'),  # 修改邮箱


    #path('recommend/', RecommendView.as_view(),name='my_recommend'),  # 推荐
    #path('myfav/', MyFavMovie.as_view(), name='my_fav'), # 我的收藏
]